﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Ninject.Syntax;

namespace SportsStore.WebUI.Infastructure
{
    public class NinjectDependencyResolver //: IDependencyResolver
    {
        private readonly IResolutionRoot resolutionRoot;

        public NinjectDependencyResolver(IResolutionRoot kernel)
        {
            resolutionRoot = kernel;
        }

        //public object GetService(Type serviceType)
        //{
        //    return resolutionRoot.TryGet(serviceType);
        //}

        //public IEnumerable<object> GetServices(Type serviceType)
        //{
        //    return resolutionRoot.GetAll(serviceType);
        //}
    }
}